/*
Copyright (c) 2010 SailorClub.com.  All rights reserved.  
*/
package com.bardpub.utils
{
	import flash.display.Graphics;
	public class GraphicUtil 
	{
		/**
		 * @private
		 * 画一个矩形
		 * @param	graphic		要绘制的Graphics对象
		 * @param	x			左上角x坐标
		 * @param	y			左上角y坐标
		 * @param	width		矩形宽度
		 * @param	height		矩形高度
		 * @param	color		颜色
		 * @param	alpha		透明度
		 */
		public static function drawRect(graphic:Graphics, x:Number, y:Number, width:Number, height:Number, color:uint = 0, alpha:Number = 1):void 
		{
			graphic.beginFill(color, alpha);
			graphic.drawRect(x, y, width, height);
			graphic.endFill();
		}
		
	}
}